#include<stdio.h>

int main(){

	short a;
	unsigned short b;
	int c;
        unsigned int d;
	long e;
	unsigned long f;
	long long g;
	unsigned long long h;
	printf("short a 的大小：%zu 字节\n", sizeof(a));
    	printf("unsigned short b 的大小：%zu 字节\n", sizeof(b));
    	printf("int c 的大小：%zu 字节\n", sizeof(c));
    	printf("unsigned int d 的大小：%zu 字节\n", sizeof(d));
    	printf("long e 的大小：%zu 字节\n", sizeof(e));
    	printf("unsigned long f 的大小：%zu 字节\n", sizeof(f));
    	printf("long long g 的大小：%zu 字节\n", sizeof(g));
    	printf("unsigned long long h 的大小：%zu 字节\n", sizeof(h));
	
	
	 printf("请输入 short 类型的值（例如 -123）：");
    scanf("%hd", &a);

    printf("请输入 unsigned short 类型的值（例如 456）：");
    scanf("%hu", &b);

    printf("请输入 int 类型的值（例如 -789）：");
    scanf("%d", &c);

    printf("请输入 unsigned int 类型的值（例如 123456）：");
    scanf("%u", &d);

    printf("请输入 long 类型的值（例如 -123456789）：");
    scanf("%ld", &e);

    printf("请输入 unsigned long 类型的值（例如 987654321）：");
    scanf("%lu", &f);

    printf("请输入 long long 类型的值（例如 -123456789012345）：");
    scanf("%lld", &g);

    printf("请输入 unsigned long long 类型的值（例如 123456789012345）：");
    scanf("%llu", &h);
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	printf("short a: %hd\n", a);
    	printf("unsigned short b: %hu\n", b);
   	printf("int c: %d\n", c);
   	printf("unsigned int d: %u\n", d);
 	printf("long e: %ld\n", e);
  	printf("unsigned long f: %lu\n", f);
  	printf("long long g: %lld\n", g);
  	printf("unsigned long long h: %llu\n", h); 







return 0;
}
